package lol.clann.minecraft.springboot.api.bukkit.utils;

import lol.clann.minecraft.springboot.api.model.menu.Menu;
import lol.clann.minecraft.springboot.api.service.CacheService;
import org.bukkit.inventory.ItemStack;

/**
 * @author: zyp
 * @date: 2020/11/2 3:48 下午
 */
public interface MenuUtils {

    ItemStackUtils getItemStackUtils();

    NBTUtils getNbtUtils();

    ServerUtils getServerUtils();

    CacheService getCacheService();

    public Menu.MenuBuilder createMenu();

    public void registerMenu(Menu menu);

    public void unregisterMenu(Menu menu);

    public void setUid(ItemStack itemStack, long uid);

    /**
     * 读取图标的uid,如果没有,就返回-1
     *
     * @param itemStack
     * @return
     */
    public long getUid(ItemStack itemStack);
}
